<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Leaf Open UTAU Qt: VoiceBank类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Leaf Open UTAU Qt
   </div>
   <div id="projectbrief">UTAU的简单开源实现之一</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#signals">信号</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_voice_bank-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">VoiceBank类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>用于表示一个音源库  
 <a href="class_voice_bank.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="voicebank_8h_source.html">voicebank.h</a>&gt;</code></p>
<div class="dynheader">
类 VoiceBank 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_voice_bank.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank_1_1_error_state.html">ErrorState</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank_1_1_file_can_not_open.html">FileCanNotOpen</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank_1_1_file_not_exists.html">FileNotExists</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
信号</h2></td></tr>
<tr class="memitem:a6686d188ce16510f61c5b0c2ce22e73e"><td class="memItemLeft" align="right" valign="top"><a id="a6686d188ce16510f61c5b0c2ce22e73e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>readDone</b> (<a class="el" href="class_voice_bank.html">VoiceBank</a> *)</td></tr>
<tr class="separator:a6686d188ce16510f61c5b0c2ce22e73e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bb4b1416391ef272de58aba33ae70bc"><td class="memItemLeft" align="right" valign="top"><a id="a4bb4b1416391ef272de58aba33ae70bc"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>statusOutput</b> (const QString &amp;)</td></tr>
<tr class="separator:a4bb4b1416391ef272de58aba33ae70bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a729bde5e4265b9ade499d2cd42156d28"><td class="memItemLeft" align="right" valign="top"><a id="a729bde5e4265b9ade499d2cd42156d28"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>backupImageFileBecauseExists</b> (<a class="el" href="class_voice_bank.html">VoiceBank</a> *)</td></tr>
<tr class="separator:a729bde5e4265b9ade499d2cd42156d28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49461529cdf5bafb70486fdb093e12e2"><td class="memItemLeft" align="right" valign="top"><a id="a49461529cdf5bafb70486fdb093e12e2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>cannotBackupImageFile</b> (<a class="el" href="class_voice_bank.html">VoiceBank</a> *)</td></tr>
<tr class="separator:a49461529cdf5bafb70486fdb093e12e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab69de6bc7994d7ad9cc0e0572222d2f7"><td class="memItemLeft" align="right" valign="top"><a id="ab69de6bc7994d7ad9cc0e0572222d2f7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>categoryChanged</b> ()</td></tr>
<tr class="separator:ab69de6bc7994d7ad9cc0e0572222d2f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a2d77a71253ccb370b78cbace7e2324"><td class="memItemLeft" align="right" valign="top"><a id="a5a2d77a71253ccb370b78cbace7e2324"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>labelsChanged</b> ()</td></tr>
<tr class="separator:a5a2d77a71253ccb370b78cbace7e2324"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:addc83547db8d5ade6a47de0a88209f03"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#addc83547db8d5ade6a47de0a88209f03">VoiceBank</a> (QString path, QObject *parent=nullptr)</td></tr>
<tr class="separator:addc83547db8d5ade6a47de0a88209f03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a320eb1034f9d459467b55e907f588da3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a320eb1034f9d459467b55e907f588da3">~VoiceBank</a> ()</td></tr>
<tr class="separator:a320eb1034f9d459467b55e907f588da3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7419ec252248b1d9f95f1c7dee71aae"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#ad7419ec252248b1d9f95f1c7dee71aae">getName</a> () const</td></tr>
<tr class="separator:ad7419ec252248b1d9f95f1c7dee71aae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91658c448e7ba9b58ab294ec4a9fc942"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a91658c448e7ba9b58ab294ec4a9fc942">setName</a> (const QString &amp;name)</td></tr>
<tr class="separator:a91658c448e7ba9b58ab294ec4a9fc942"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada1b98fcc34a3b04c875ba4c28245326"><td class="memItemLeft" align="right" valign="top">QImage&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#ada1b98fcc34a3b04c875ba4c28245326">getImage</a> () const</td></tr>
<tr class="separator:ada1b98fcc34a3b04c875ba4c28245326"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a323ef7eed84282e0db54fd0c78468d5b"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a323ef7eed84282e0db54fd0c78468d5b">getImagePath</a> () const</td></tr>
<tr class="separator:a323ef7eed84282e0db54fd0c78468d5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad957f5611223986a1d77c0eca737d485"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#ad957f5611223986a1d77c0eca737d485">setImage</a> (const QImage &amp;_image, const QString &amp;newImageFileName=&quot;icon.jpg&quot;)</td></tr>
<tr class="separator:ad957f5611223986a1d77c0eca737d485"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2136445278b15064c59d5b2489452098"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a2136445278b15064c59d5b2489452098">getReadme</a> () const</td></tr>
<tr class="separator:a2136445278b15064c59d5b2489452098"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bd3ce4acbfb44eb6a2370fadbb3b9c8"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a8bd3ce4acbfb44eb6a2370fadbb3b9c8">getPath</a> () const</td></tr>
<tr class="separator:a8bd3ce4acbfb44eb6a2370fadbb3b9c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef013fee6923e73ed1468db4e9ca3fc3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#aef013fee6923e73ed1468db4e9ca3fc3">readFromPath</a> ()</td></tr>
<tr class="separator:aef013fee6923e73ed1468db4e9ca3fc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe4c4710cbcb993d79c48ecec56cb47c"><td class="memItemLeft" align="right" valign="top">QTextCodec *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#abe4c4710cbcb993d79c48ecec56cb47c">getCharacterTextCodec</a> () const</td></tr>
<tr class="separator:abe4c4710cbcb993d79c48ecec56cb47c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc55a69bf807741f134b543108b44129"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#acc55a69bf807741f134b543108b44129">setCharacterTextCodec</a> (QTextCodec *value)</td></tr>
<tr class="separator:acc55a69bf807741f134b543108b44129"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf1125fb9d76d43eb334077b9b7a778c"><td class="memItemLeft" align="right" valign="top">QTextCodec *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#aaf1125fb9d76d43eb334077b9b7a778c">getReadmeTextCodec</a> () const</td></tr>
<tr class="separator:aaf1125fb9d76d43eb334077b9b7a778c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dd48e30f571ef5c62bf26410b953ab9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a0dd48e30f571ef5c62bf26410b953ab9">setReadmeTextCodec</a> (QTextCodec *value)</td></tr>
<tr class="separator:a0dd48e30f571ef5c62bf26410b953ab9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03d574b222cf2fd768bab7f04fa0e443"><td class="memItemLeft" align="right" valign="top">QTextCodec *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a03d574b222cf2fd768bab7f04fa0e443">getWavFileNameTextCodec</a> () const</td></tr>
<tr class="separator:a03d574b222cf2fd768bab7f04fa0e443"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05dbd7280834b492c42cb101e9a2d39b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a05dbd7280834b492c42cb101e9a2d39b">setWavFileNameTextCodec</a> (QTextCodec *value)</td></tr>
<tr class="separator:a05dbd7280834b492c42cb101e9a2d39b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a148526fcdf6e6c45ae0b074ff6ef465b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a148526fcdf6e6c45ae0b074ff6ef465b">isTextCodecFollowDefault</a> () const</td></tr>
<tr class="separator:a148526fcdf6e6c45ae0b074ff6ef465b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fa1d1ee6e3255a5debd2a65b891e911"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a3fa1d1ee6e3255a5debd2a65b891e911">setTextCodecFollowDefault</a> (bool value)</td></tr>
<tr class="separator:a3fa1d1ee6e3255a5debd2a65b891e911"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18ba1f0f100fde54ff86a21b4ea79aa8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a18ba1f0f100fde54ff86a21b4ea79aa8">isTextCodecAutoDetect</a> () const</td></tr>
<tr class="separator:a18ba1f0f100fde54ff86a21b4ea79aa8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a570aa31b56907e83f504430efa19d133"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a570aa31b56907e83f504430efa19d133">setTextCodecAutoDetect</a> (bool value)</td></tr>
<tr class="separator:a570aa31b56907e83f504430efa19d133"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc5cee0ef816215298342829fcaae0a8"><td class="memItemLeft" align="right" valign="top"><a id="afc5cee0ef816215298342829fcaae0a8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>saveSettings</b> ()</td></tr>
<tr class="separator:afc5cee0ef816215298342829fcaae0a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a032d1b8bf8364a172f04082fd282dd21"><td class="memItemLeft" align="right" valign="top"><a id="a032d1b8bf8364a172f04082fd282dd21"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>readWavFileName</b> ()</td></tr>
<tr class="separator:a032d1b8bf8364a172f04082fd282dd21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3762c1d518087316a9649131dfe5c81a"><td class="memItemLeft" align="right" valign="top"><a id="a3762c1d518087316a9649131dfe5c81a"></a>
QStringList&#160;</td><td class="memItemRight" valign="bottom"><b>getWavFileName</b> () const</td></tr>
<tr class="separator:a3762c1d518087316a9649131dfe5c81a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afffe7292d9dbc89b9546e4494447f3ee"><td class="memItemLeft" align="right" valign="top"><a id="afffe7292d9dbc89b9546e4494447f3ee"></a>
QByteArrayList&#160;</td><td class="memItemRight" valign="bottom"><b>getWavFileNameRaw</b> () const</td></tr>
<tr class="separator:afffe7292d9dbc89b9546e4494447f3ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4383d39be988e244bf77463652984e01"><td class="memItemLeft" align="right" valign="top"><a id="a4383d39be988e244bf77463652984e01"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>clearWavFileReadStage</b> ()</td></tr>
<tr class="separator:a4383d39be988e244bf77463652984e01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabb6bd8c0d3c765d20c7c8f83b7e7b3c"><td class="memItemLeft" align="right" valign="top"><a id="aabb6bd8c0d3c765d20c7c8f83b7e7b3c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>decodeWavFileName</b> ()</td></tr>
<tr class="separator:aabb6bd8c0d3c765d20c7c8f83b7e7b3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0c6e710f74854c97052f9303386a966"><td class="memItemLeft" align="right" valign="top"><a id="ac0c6e710f74854c97052f9303386a966"></a>
QStringList&#160;</td><td class="memItemRight" valign="bottom"><b>getWavFilePath</b> () const</td></tr>
<tr class="separator:ac0c6e710f74854c97052f9303386a966"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8e1782503fe09a3d6e17cd47cfdae14"><td class="memItemLeft" align="right" valign="top"><a id="ae8e1782503fe09a3d6e17cd47cfdae14"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isFirstRead</b> () const</td></tr>
<tr class="separator:ae8e1782503fe09a3d6e17cd47cfdae14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b51d1d89ff91b76ca3948bf13058c99"><td class="memItemLeft" align="right" valign="top"><a id="a9b51d1d89ff91b76ca3948bf13058c99"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>getSample</b> () const</td></tr>
<tr class="separator:a9b51d1d89ff91b76ca3948bf13058c99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a314bcf3b87ab4f05e9f07aae9b9296c1"><td class="memItemLeft" align="right" valign="top"><a id="a314bcf3b87ab4f05e9f07aae9b9296c1"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>getCharacterFileAutoDetectConfidence</b> () const</td></tr>
<tr class="separator:a314bcf3b87ab4f05e9f07aae9b9296c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a452e6ad14cfbe958c7ffb259472d634a"><td class="memItemLeft" align="right" valign="top"><a id="a452e6ad14cfbe958c7ffb259472d634a"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>getReadmeFileAutoDetectConfidence</b> () const</td></tr>
<tr class="separator:a452e6ad14cfbe958c7ffb259472d634a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ab99c340736b5ba210847abaf793554"><td class="memItemLeft" align="right" valign="top"><a id="a5ab99c340736b5ba210847abaf793554"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>getHasTextCodecAutoDetected</b> () const</td></tr>
<tr class="separator:a5ab99c340736b5ba210847abaf793554"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba82470c57e080a3ec0ce228c315f09f"><td class="memItemLeft" align="right" valign="top"><a id="aba82470c57e080a3ec0ce228c315f09f"></a>
QList&lt; <a class="el" href="class_voice_bank_1_1_error_state.html">ErrorState</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>getErrorStates</b> () const</td></tr>
<tr class="separator:aba82470c57e080a3ec0ce228c315f09f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c6d82e31ea9002806e4ffcf81fd4ecd"><td class="memItemLeft" align="right" valign="top"><a id="a2c6d82e31ea9002806e4ffcf81fd4ecd"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>getCategory</b> () const</td></tr>
<tr class="separator:a2c6d82e31ea9002806e4ffcf81fd4ecd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace908a50482d13bfc8aba0bde7d3e12a"><td class="memItemLeft" align="right" valign="top"><a id="ace908a50482d13bfc8aba0bde7d3e12a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setCategory</b> (const QString &amp;value)</td></tr>
<tr class="separator:ace908a50482d13bfc8aba0bde7d3e12a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a866f20cb6a2c0e0096f430c9375bcb7b"><td class="memItemLeft" align="right" valign="top"><a id="a866f20cb6a2c0e0096f430c9375bcb7b"></a>
QStringList&#160;</td><td class="memItemRight" valign="bottom"><b>getLabels</b> () const</td></tr>
<tr class="separator:a866f20cb6a2c0e0096f430c9375bcb7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48f66ad18fcf3a7d8a99ebda5b4baa59"><td class="memItemLeft" align="right" valign="top"><a id="a48f66ad18fcf3a7d8a99ebda5b4baa59"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setLabels</b> (const QStringList &amp;value)</td></tr>
<tr class="separator:a48f66ad18fcf3a7d8a99ebda5b4baa59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a794af41dcf3012c711ec151bfc95b777"><td class="memItemLeft" align="right" valign="top"><a id="a794af41dcf3012c711ec151bfc95b777"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>appendLabel</b> (const QString &amp;label)</td></tr>
<tr class="separator:a794af41dcf3012c711ec151bfc95b777"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a656e05d9174c2345fb40a8f78cc948a2"><td class="memItemLeft" align="right" valign="top"><a id="a656e05d9174c2345fb40a8f78cc948a2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>appendLabels</b> (const QStringList &amp;label)</td></tr>
<tr class="separator:a656e05d9174c2345fb40a8f78cc948a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbd53df19b8f02d79ce6a13e41dac5ff"><td class="memItemLeft" align="right" valign="top"><a id="adbd53df19b8f02d79ce6a13e41dac5ff"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>toggleLabelStatus</b> (const QString &amp;label)</td></tr>
<tr class="separator:adbd53df19b8f02d79ce6a13e41dac5ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8e5d9af798491917513351fcb5ac72f"><td class="memItemLeft" align="right" valign="top"><a id="ad8e5d9af798491917513351fcb5ac72f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>removeLabel</b> (const QString &amp;label)</td></tr>
<tr class="separator:ad8e5d9af798491917513351fcb5ac72f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:abb562c8f72e32610bc8cc98561b0427e"><td class="memItemLeft" align="right" valign="top">static QTextCodec *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#abb562c8f72e32610bc8cc98561b0427e">getDefaultCharacterTextCodec</a> ()</td></tr>
<tr class="separator:abb562c8f72e32610bc8cc98561b0427e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c2fb72f64da9e0f83fd347517bef946"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a3c2fb72f64da9e0f83fd347517bef946">setDefaultCharacterTextCodec</a> (QTextCodec *value)</td></tr>
<tr class="separator:a3c2fb72f64da9e0f83fd347517bef946"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a431c26fa61a8079bf7a69bbe70acec5b"><td class="memItemLeft" align="right" valign="top">static QTextCodec *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a431c26fa61a8079bf7a69bbe70acec5b">getDefaultReadmeTextCodec</a> ()</td></tr>
<tr class="separator:a431c26fa61a8079bf7a69bbe70acec5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a661eaeeee942b293868f2d5da988d47e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a661eaeeee942b293868f2d5da988d47e">setDefaultReadmeTextCodec</a> (QTextCodec *value)</td></tr>
<tr class="separator:a661eaeeee942b293868f2d5da988d47e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a845f1dd729f2f1045e2969a9d5671c1c"><td class="memItemLeft" align="right" valign="top">static QTextCodec *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a845f1dd729f2f1045e2969a9d5671c1c">getDefaultWavFileNameTextCodec</a> ()</td></tr>
<tr class="separator:a845f1dd729f2f1045e2969a9d5671c1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e77a755d7b923a6000e7e6fba12a056"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voice_bank.html#a2e77a755d7b923a6000e7e6fba12a056">setDefaultWavFileNameTextCodec</a> (QTextCodec *value)</td></tr>
<tr class="separator:a2e77a755d7b923a6000e7e6fba12a056"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4c181645034217f9e91fdfd8b0f83c8"><td class="memItemLeft" align="right" valign="top"><a id="af4c181645034217f9e91fdfd8b0f83c8"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>isDefalutTextCodecAutoDetect</b> ()</td></tr>
<tr class="separator:af4c181645034217f9e91fdfd8b0f83c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc34b7f5572a068f40e4782159f330ef"><td class="memItemLeft" align="right" valign="top"><a id="acc34b7f5572a068f40e4782159f330ef"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>setDefalutTextCodecAutoDetect</b> (bool value)</td></tr>
<tr class="separator:acc34b7f5572a068f40e4782159f330ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a387b8864cfcf83c410e13dfa042114eb"><td class="memItemLeft" align="right" valign="top"><a id="a387b8864cfcf83c410e13dfa042114eb"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>isVoiceBankPath</b> (const QString &amp;path)</td></tr>
<tr class="separator:a387b8864cfcf83c410e13dfa042114eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>用于表示一个音源库 </p>
<p><a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 类代表了一个 UTAU 式音源库。可以通过它获取音源库的相关信息，并可作出修改。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="addc83547db8d5ade6a47de0a88209f03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addc83547db8d5ade6a47de0a88209f03">&#9670;&nbsp;</a></span>VoiceBank()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">VoiceBank::VoiceBank </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>nullptr</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p><a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 的构造函数。它将设置 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 的路径，并将所有文本编码设置置为默认。但它 <b>不会</b> 进行读取操作。您应当手动调用 <a class="el" href="class_voice_bank.html#aef013fee6923e73ed1468db4e9ca3fc3">readFromPath()</a> 。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>声库的路径 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">parent</td><td>父对象，是否设置对 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 的行为没有影响。默认为 nullptr 。</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a320eb1034f9d459467b55e907f588da3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a320eb1034f9d459467b55e907f588da3">&#9670;&nbsp;</a></span>~VoiceBank()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VoiceBank::~VoiceBank </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 的析构函数。它将保存 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 的设置到路径下的 leafUTAUQtSettings.json 中。</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="abe4c4710cbcb993d79c48ecec56cb47c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe4c4710cbcb993d79c48ecec56cb47c">&#9670;&nbsp;</a></span>getCharacterTextCodec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QTextCodec * VoiceBank::getCharacterTextCodec </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>返回 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取该音源库的 character.txt 时使用的文本编码。</p>
<p>该项设置保存于音源库路径下的 leafUTAUQtSettings.json 中。 </p><dl class="section return"><dt>返回</dt><dd><a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取该音源库的 character.txt 时使用的 QTextCodec * </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#acc55a69bf807741f134b543108b44129">setCharacterTextCodec(QTextCodec *value)</a> </dd>
<dd>
<a class="el" href="class_voice_bank.html#aaf1125fb9d76d43eb334077b9b7a778c">getReadmeTextCodec() const</a></dd></dl>

</div>
</div>
<a id="abb562c8f72e32610bc8cc98561b0427e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb562c8f72e32610bc8cc98561b0427e">&#9670;&nbsp;</a></span>getDefaultCharacterTextCodec()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QTextCodec * VoiceBank::getDefaultCharacterTextCodec </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回默认情况下 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取音源库的 character.txt 时使用的文本编码。</p>
<dl class="section return"><dt>返回</dt><dd>默认情况下 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取音源库的 character.txt 时使用的文本编码 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#a3c2fb72f64da9e0f83fd347517bef946">setDefaultCharacterTextCodec(QTextCodec *value)</a> </dd>
<dd>
<a class="el" href="class_voice_bank.html#a431c26fa61a8079bf7a69bbe70acec5b">getDefaultReadmeTextCodec()</a></dd></dl>

</div>
</div>
<a id="a431c26fa61a8079bf7a69bbe70acec5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a431c26fa61a8079bf7a69bbe70acec5b">&#9670;&nbsp;</a></span>getDefaultReadmeTextCodec()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QTextCodec * VoiceBank::getDefaultReadmeTextCodec </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回默认情况下 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取音源库的 readme.txt 时使用的文本编码。</p>
<dl class="section return"><dt>返回</dt><dd>默认情况下 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取音源库的 readme.txt 时使用的文本编码 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#a661eaeeee942b293868f2d5da988d47e">setDefaultReadmeTextCodec(QTextCodec *value)</a> </dd>
<dd>
<a class="el" href="class_voice_bank.html#abb562c8f72e32610bc8cc98561b0427e">getDefaultCharacterTextCodec()</a></dd></dl>

</div>
</div>
<a id="a845f1dd729f2f1045e2969a9d5671c1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a845f1dd729f2f1045e2969a9d5671c1c">&#9670;&nbsp;</a></span>getDefaultWavFileNameTextCodec()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QTextCodec * VoiceBank::getDefaultWavFileNameTextCodec </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回默认情况下 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取该音源库的 wav 文件的文件名时使用的文本编码。</p>
<dl class="section return"><dt>返回</dt><dd>默认情况下 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取该音源库的 wav 文件的文件名时使用的文本编码 </dd></dl>
<dl class="section see"><dt>参见</dt><dd>setDefaultWavFileNameCodec(QTextCodec *value)</dd></dl>

</div>
</div>
<a id="ada1b98fcc34a3b04c875ba4c28245326"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada1b98fcc34a3b04c875ba4c28245326">&#9670;&nbsp;</a></span>getImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QImage VoiceBank::getImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获得该音源库的图标。</p>
<p>音源库的图标是指在 character.txt 的 image 字段中定义的音源的图标。在 character.txt 中的值为其路径。 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 会将其读取到 QImage 实例中。<br />
建议音源库的图标尺寸为 100*100 ，或至少宽高比为 1:1 。 </p><dl class="section return"><dt>返回</dt><dd>包含音源图标的 QImage 。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#ad957f5611223986a1d77c0eca737d485">setImage(const QImage&amp; _image, const QString &amp;newImageFileName)</a></dd></dl>

</div>
</div>
<a id="a323ef7eed84282e0db54fd0c78468d5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a323ef7eed84282e0db54fd0c78468d5b">&#9670;&nbsp;</a></span>getImagePath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString VoiceBank::getImagePath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获得该音源库的图标的路径。</p>
<p>如果您要使用该图标，建议直接使用 <a class="el" href="class_voice_bank.html#ada1b98fcc34a3b04c875ba4c28245326">getImage() const </a>。 </p><dl class="section return"><dt>返回</dt><dd>音源库图标的路径。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#ada1b98fcc34a3b04c875ba4c28245326">getImage() const</a></dd></dl>

</div>
</div>
<a id="ad7419ec252248b1d9f95f1c7dee71aae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7419ec252248b1d9f95f1c7dee71aae">&#9670;&nbsp;</a></span>getName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString VoiceBank::getName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获得音源库的名称。</p>
<p>音源库的名称是指在 character.txt 的 name 字段中定义的音源名称。 </p><dl class="section return"><dt>返回</dt><dd>音源库的名称。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#a91658c448e7ba9b58ab294ec4a9fc942">setName(const QString&amp; name)</a></dd></dl>

</div>
</div>
<a id="a8bd3ce4acbfb44eb6a2370fadbb3b9c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8bd3ce4acbfb44eb6a2370fadbb3b9c8">&#9670;&nbsp;</a></span>getPath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString VoiceBank::getPath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获得该音源库的路径</p>
<p>音源库的路径是指音源库文件存放的文件夹位置。您应当直接在构造函数中设置，因为在没有路径的情况下，所有 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 类的功能都将失效。 </p><dl class="section return"><dt>返回</dt><dd>音源库的路径</dd></dl>

</div>
</div>
<a id="a2136445278b15064c59d5b2489452098"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2136445278b15064c59d5b2489452098">&#9670;&nbsp;</a></span>getReadme()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString VoiceBank::getReadme </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获得 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 的 readme 信息。</p>
<p>音源库的 readme 信息保存于路径下的 readme.txt 文件中。该信息将在音源详情页面等位置显示。</p>

</div>
</div>
<a id="aaf1125fb9d76d43eb334077b9b7a778c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf1125fb9d76d43eb334077b9b7a778c">&#9670;&nbsp;</a></span>getReadmeTextCodec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QTextCodec * VoiceBank::getReadmeTextCodec </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>返回 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取该音源库的 readme.txt 时使用的文本编码。</p>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取该音源库的 readme.txt 时使用的 QTextCodec * </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#a0dd48e30f571ef5c62bf26410b953ab9">setReadmeTextCodec(QTextCodec *value)</a> </dd>
<dd>
<a class="el" href="class_voice_bank.html#abe4c4710cbcb993d79c48ecec56cb47c">getCharacterTextCodec() const</a></dd></dl>

</div>
</div>
<a id="a03d574b222cf2fd768bab7f04fa0e443"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03d574b222cf2fd768bab7f04fa0e443">&#9670;&nbsp;</a></span>getWavFileNameTextCodec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QTextCodec * VoiceBank::getWavFileNameTextCodec </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>返回 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取该音源库的 wav 文件的文件名时使用的文本编码。</p>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取该音源库的 wav 文件的文件名时使用的 QTextCodec * </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#a05dbd7280834b492c42cb101e9a2d39b">setWavFileNameTextCodec(QTextCodec *value)</a></dd></dl>

</div>
</div>
<a id="a18ba1f0f100fde54ff86a21b4ea79aa8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18ba1f0f100fde54ff86a21b4ea79aa8">&#9670;&nbsp;</a></span>isTextCodecAutoDetect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool VoiceBank::isTextCodecAutoDetect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>返回该音源库的文本编码是否要由程序自动推断</p>
<p>该项设置仅影响文本编码，并且影响所有文本，不影响文件名编码。 </p><dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#a570aa31b56907e83f504430efa19d133">setTextCodecAutoDetect(bool value)</a></dd></dl>

</div>
</div>
<a id="a148526fcdf6e6c45ae0b074ff6ef465b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a148526fcdf6e6c45ae0b074ff6ef465b">&#9670;&nbsp;</a></span>isTextCodecFollowDefault()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool VoiceBank::isTextCodecFollowDefault </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>返回该音源库的文本编码是否跟随默认编码</p>
<p>该项设置同时影响所有文本的相关设置。 </p><dl class="section return"><dt>返回</dt><dd>该音源库的文本编码是否跟随默认编码 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#a3fa1d1ee6e3255a5debd2a65b891e911">setTextCodecFollowDefault(bool value)</a></dd></dl>

</div>
</div>
<a id="aef013fee6923e73ed1468db4e9ca3fc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef013fee6923e73ed1468db4e9ca3fc3">&#9670;&nbsp;</a></span>readFromPath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void VoiceBank::readFromPath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>从路径中读取 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a></p>
<p>从路径中读取 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 的所需信息。您应当在调用本函数之后再使用 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 。 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 并不对没有读取就进行操作提出警告。 </p><dl class="todo"><dt><b><a class="el" href="todo.html#_todo000001">待办事项:</a></b></dt><dd>对没有读取过的 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 执行操作时的检查。 </dd></dl>

</div>
</div>
<a id="acc55a69bf807741f134b543108b44129"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc55a69bf807741f134b543108b44129">&#9670;&nbsp;</a></span>setCharacterTextCodec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void VoiceBank::setCharacterTextCodec </td>
          <td>(</td>
          <td class="paramtype">QTextCodec *&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>更改 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取该音源库的 character.txt 时使用的文本编码。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>要使用的文本编码。为 nullptr 时将设置为默认编码。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#abe4c4710cbcb993d79c48ecec56cb47c">getCharacterTextCodec() const</a></dd></dl>

</div>
</div>
<a id="a3c2fb72f64da9e0f83fd347517bef946"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c2fb72f64da9e0f83fd347517bef946">&#9670;&nbsp;</a></span>setDefaultCharacterTextCodec()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void VoiceBank::setDefaultCharacterTextCodec </td>
          <td>(</td>
          <td class="paramtype">QTextCodec *&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>更改默认情况下 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取音源库的 character.txt 时使用的文本编码。</p>
<p>该项设置保存于 QSettings 中，默认为 Shift-JIS 。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>要使用的文本编码。为 nullptr 时的行为是未定义的。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#abb562c8f72e32610bc8cc98561b0427e">getDefaultCharacterTextCodec()</a> </dd>
<dd>
<a class="el" href="class_voice_bank.html#a661eaeeee942b293868f2d5da988d47e">setDefaultReadmeTextCodec(QTextCodec *value)</a></dd></dl>

</div>
</div>
<a id="a661eaeeee942b293868f2d5da988d47e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a661eaeeee942b293868f2d5da988d47e">&#9670;&nbsp;</a></span>setDefaultReadmeTextCodec()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void VoiceBank::setDefaultReadmeTextCodec </td>
          <td>(</td>
          <td class="paramtype">QTextCodec *&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>更改默认情况下 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取音源库的 readme.txt 时使用的文本编码。</p>
<p>该项设置保存于 QSettings 中，默认为 Shift-JIS 。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>要使用的文本编码。为 nullptr 时的行为是未定义的。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#a431c26fa61a8079bf7a69bbe70acec5b">getDefaultReadmeTextCodec()</a> </dd>
<dd>
<a class="el" href="class_voice_bank.html#a3c2fb72f64da9e0f83fd347517bef946">setDefaultCharacterTextCodec(QTextCodec *value)</a></dd></dl>

</div>
</div>
<a id="a2e77a755d7b923a6000e7e6fba12a056"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e77a755d7b923a6000e7e6fba12a056">&#9670;&nbsp;</a></span>setDefaultWavFileNameTextCodec()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void VoiceBank::setDefaultWavFileNameTextCodec </td>
          <td>(</td>
          <td class="paramtype">QTextCodec *&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>更改默认情况下 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取该音源库的 wav 文件的文件名时使用的文本编码。</p>
<p>该项设置保存于 QSettings 中，默认为 Shift-JIS 。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>要使用的文本编码。为 nullptr 时的行为是未定义的。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#abb562c8f72e32610bc8cc98561b0427e">getDefaultCharacterTextCodec()</a> </dd>
<dd>
<a class="el" href="class_voice_bank.html#a661eaeeee942b293868f2d5da988d47e">setDefaultReadmeTextCodec(QTextCodec *value)</a></dd></dl>

</div>
</div>
<a id="ad957f5611223986a1d77c0eca737d485"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad957f5611223986a1d77c0eca737d485">&#9670;&nbsp;</a></span>setImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void VoiceBank::setImage </td>
          <td>(</td>
          <td class="paramtype">const QImage &amp;&#160;</td>
          <td class="paramname"><em>_image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>newImageFileName</em> = <code>&quot;icon.jpg&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>改变一个音源库的图标</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">image</td><td>该音源库的新图标。 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 会尝试将其缩放为 100*100 。 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">newImageFileName</td><td>音源库新图标的文件名。 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 将自动推断文件格式并保存。在有同名文件存在时， <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 会尝试备份原有图标。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_voice_bank_1_1_file_can_not_open.html">FileCanNotOpen</a></td><td></td></tr>
    <tr><td class="paramname"><a class="el" href="class_voice_bank_1_1_file_not_exists.html">FileNotExists</a></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a91658c448e7ba9b58ab294ec4a9fc942"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91658c448e7ba9b58ab294ec4a9fc942">&#9670;&nbsp;</a></span>setName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void VoiceBank::setName </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>重命名一个音源库</p>
<p><a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 会将新名称写入路径下的 character.txt 中，并自动重载。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>音源库的新名称 </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_voice_bank_1_1_file_can_not_open.html">FileCanNotOpen</a></td><td></td></tr>
    <tr><td class="paramname"><a class="el" href="class_voice_bank_1_1_file_not_exists.html">FileNotExists</a></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0dd48e30f571ef5c62bf26410b953ab9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0dd48e30f571ef5c62bf26410b953ab9">&#9670;&nbsp;</a></span>setReadmeTextCodec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void VoiceBank::setReadmeTextCodec </td>
          <td>(</td>
          <td class="paramtype">QTextCodec *&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>更改 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取该音源库的 readme.txt 时使用的文本编码。</p>
<p>该项设置保存于音源库路径下的 leafUTAUQtSettings.json 中。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>要使用的文本编码。为 nullptr 时将设置为默认编码。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#aaf1125fb9d76d43eb334077b9b7a778c">getReadmeTextCodec() const</a></dd></dl>

</div>
</div>
<a id="a570aa31b56907e83f504430efa19d133"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a570aa31b56907e83f504430efa19d133">&#9670;&nbsp;</a></span>setTextCodecAutoDetect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void VoiceBank::setTextCodecAutoDetect </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置该音源库的文本编码是否要由程序自动推断</p>
<p>该项设置保存于音源库路径下的 leafUTAUQtSettings.json 中。 </p><dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#a18ba1f0f100fde54ff86a21b4ea79aa8">isTextCodecAutoDetect() const</a></dd></dl>

</div>
</div>
<a id="a3fa1d1ee6e3255a5debd2a65b891e911"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fa1d1ee6e3255a5debd2a65b891e911">&#9670;&nbsp;</a></span>setTextCodecFollowDefault()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void VoiceBank::setTextCodecFollowDefault </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置该音源库的文本编码是否跟随默认编码</p>
<p>该项设置保存于音源库路径下的 leafUTAUQtSettings.json 中。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>该音源库的文本编码是否跟随默认编码？ </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#a148526fcdf6e6c45ae0b074ff6ef465b">isTextCodecFollowDefault() const</a></dd></dl>

</div>
</div>
<a id="a05dbd7280834b492c42cb101e9a2d39b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05dbd7280834b492c42cb101e9a2d39b">&#9670;&nbsp;</a></span>setWavFileNameTextCodec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void VoiceBank::setWavFileNameTextCodec </td>
          <td>(</td>
          <td class="paramtype">QTextCodec *&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>更改 <a class="el" href="class_voice_bank.html" title="用于表示一个音源库">VoiceBank</a> 读取该音源库的 wav 文件的文件名时使用的文本编码。</p>
<p>该项设置保存于音源库路径下的 leafUTAUQtSettings.json 中。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>要使用的文本编码。为 nullptr 时将设置为默认编码。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_voice_bank.html#a03d574b222cf2fd768bab7f04fa0e443">getWavFileNameTextCodec() const</a></dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>VoiceBankUtils/<a class="el" href="voicebank_8h_source.html">voicebank.h</a></li>
<li>VoiceBankUtils/voicebank.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
